package cn.kgc.ubagnet.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author shkstart
 * @create 2020-08-06 12:59
 */
@Controller
public class SecurityBuyer {


    //跳转到首页
    @GetMapping("/")
    public String index() {
        return "index";
    }

    //跳转到注册页面
    @GetMapping("/register")
    public String register(){
        return "login";
    }

    //指定登陆页面
    @GetMapping("/login")
    public String  login(){
        return "login";
    }
    //登陆成功
    @GetMapping("/toindex")
    public String toindex(){
        return "index";
    }


}
